//
//  BaseTableViewController.m
//  WindRunner
//
//  Created by leeqb on 9/13/14.
//  Copyright (c) 2014 poweropt. All rights reserved.
//

#import "BaseTableViewController.h"
#import "BaseViewController.h"

@interface BaseTableViewController ()

@end

@implementation BaseTableViewController

- (void)loadView
{
    [super loadView];
    [BaseViewController initViewController:self];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    [MobClick beginLogPageView:NSStringFromClass([self class])];
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    [MobClick endLogPageView:NSStringFromClass([self class])];
}

- (void)viewWillLayoutSubviews
{
    [super viewWillLayoutSubviews];
    
    if([self.tableView respondsToSelector:@selector(setLayoutMargins:)]) {
        self.tableView.layoutMargins = UIEdgeInsetsZero;
    }
}

// 返回上一层
- (void)backButtonClicked
{
    [BaseViewController navBack:self];
}

@end
